<?php

namespace My\EhrBundle\Entity;

/**
 * My\EhrBundle\Entity\Personnel
 */
class Personnel
{
    /**
     * @var integer $id_personnel
     */
    private $id_personnel;

    /**
     * @var My\EhrBundle\Entity\PersonnelEmployementInfo
     */
    private $employementInfo;

    /**
     * @var My\EhrBundle\Entity\PersonnelPersonalInfo
     */
    private $personalInfo;

    /**
     * @var My\EhrBundle\Entity\PersonnelAddress
     */
    private $addresses;

    /**
     * @var My\EhrBundle\Entity\PersonnelBankAccount
     */
    private $bankAccounts;

    /**
     * @var My\EhrBundle\Entity\PersonnelContactInfo
     */
    private $contactInfos;

    /**
     * @var My\EhrBundle\Entity\PersonnelEducation
     */
    private $educations;

    /**
     * @var My\EhrBundle\Entity\PersonnelFamily
     */
    private $families;

    /**
     * @var My\EhrBundle\Entity\PersonnelJobHistory
     */
    private $jobHistories;

    /**
     * @var My\EhrBundle\Entity\PersonnelTrainingHistory
     */
    private $trainingHistories;

    /**
     * @var My\EhrBundle\Entity\PersonnelPayrollInfo
     */
    private $payrollInfos;

    /**
     * @var My\EhrBundle\Entity\PersonnelEmployementRecord
     */
    private $employementRecords;

    public function __construct()
    {
        $this->addresses = new \Doctrine\Common\Collections\ArrayCollection();
    $this->bankAccounts = new \Doctrine\Common\Collections\ArrayCollection();
    $this->contactInfos = new \Doctrine\Common\Collections\ArrayCollection();
    $this->educations = new \Doctrine\Common\Collections\ArrayCollection();
    $this->families = new \Doctrine\Common\Collections\ArrayCollection();
    $this->jobHistories = new \Doctrine\Common\Collections\ArrayCollection();
    $this->trainingHistories = new \Doctrine\Common\Collections\ArrayCollection();
    $this->payrollInfos = new \Doctrine\Common\Collections\ArrayCollection();
    $this->employementRecords = new \Doctrine\Common\Collections\ArrayCollection();
    }
    
    /**
     * Get id_personnel
     *
     * @return integer $idPersonnel
     */
    public function getIdPersonnel()
    {
        return $this->id_personnel;
    }

    /**
     * Set employementInfo
     *
     * @param My\EhrBundle\Entity\PersonnelEmployementInfo $employementInfo
     */
    public function setEmployementInfo(\My\EhrBundle\Entity\PersonnelEmployementInfo $employementInfo)
    {
        $this->employementInfo = $employementInfo;
    }

    /**
     * Get employementInfo
     *
     * @return My\EhrBundle\Entity\PersonnelEmployementInfo $employementInfo
     */
    public function getEmployementInfo()
    {
        return $this->employementInfo;
    }

    /**
     * Set personalInfo
     *
     * @param My\EhrBundle\Entity\PersonnelPersonalInfo $personalInfo
     */
    public function setPersonalInfo(\My\EhrBundle\Entity\PersonnelPersonalInfo $personalInfo)
    {
        $this->personalInfo = $personalInfo;
    }

    /**
     * Get personalInfo
     *
     * @return My\EhrBundle\Entity\PersonnelPersonalInfo $personalInfo
     */
    public function getPersonalInfo()
    {
        return $this->personalInfo;
    }

    /**
     * Add addresses
     *
     * @param My\EhrBundle\Entity\PersonnelAddress $addresses
     */
    public function addAddresses(\My\EhrBundle\Entity\PersonnelAddress $addresses)
    {
        $this->addresses[] = $addresses;
    }

    /**
     * Get addresses
     *
     * @return Doctrine\Common\Collections\Collection $addresses
     */
    public function getAddresses()
    {
        return $this->addresses;
    }

    /**
     * Add bankAccounts
     *
     * @param My\EhrBundle\Entity\PersonnelBankAccount $bankAccounts
     */
    public function addBankAccounts(\My\EhrBundle\Entity\PersonnelBankAccount $bankAccounts)
    {
        $this->bankAccounts[] = $bankAccounts;
    }

    /**
     * Get bankAccounts
     *
     * @return Doctrine\Common\Collections\Collection $bankAccounts
     */
    public function getBankAccounts()
    {
        return $this->bankAccounts;
    }

    /**
     * Add contactInfos
     *
     * @param My\EhrBundle\Entity\PersonnelContactInfo $contactInfos
     */
    public function addContactInfos(\My\EhrBundle\Entity\PersonnelContactInfo $contactInfos)
    {
        $this->contactInfos[] = $contactInfos;
    }

    /**
     * Get contactInfos
     *
     * @return Doctrine\Common\Collections\Collection $contactInfos
     */
    public function getContactInfos()
    {
        return $this->contactInfos;
    }

    /**
     * Add educations
     *
     * @param My\EhrBundle\Entity\PersonnelEducation $educations
     */
    public function addEducations(\My\EhrBundle\Entity\PersonnelEducation $educations)
    {
        $this->educations[] = $educations;
    }

    /**
     * Get educations
     *
     * @return Doctrine\Common\Collections\Collection $educations
     */
    public function getEducations()
    {
        return $this->educations;
    }

    /**
     * Add families
     *
     * @param My\EhrBundle\Entity\PersonnelFamily $families
     */
    public function addFamilies(\My\EhrBundle\Entity\PersonnelFamily $families)
    {
        $this->families[] = $families;
    }

    /**
     * Get families
     *
     * @return Doctrine\Common\Collections\Collection $families
     */
    public function getFamilies()
    {
        return $this->families;
    }

    /**
     * Add jobHistories
     *
     * @param My\EhrBundle\Entity\PersonnelJobHistory $jobHistories
     */
    public function addJobHistories(\My\EhrBundle\Entity\PersonnelJobHistory $jobHistories)
    {
        $this->jobHistories[] = $jobHistories;
    }

    /**
     * Get jobHistories
     *
     * @return Doctrine\Common\Collections\Collection $jobHistories
     */
    public function getJobHistories()
    {
        return $this->jobHistories;
    }

    /**
     * Add trainingHistories
     *
     * @param My\EhrBundle\Entity\PersonnelTrainingHistory $trainingHistories
     */
    public function addTrainingHistories(\My\EhrBundle\Entity\PersonnelTrainingHistory $trainingHistories)
    {
        $this->trainingHistories[] = $trainingHistories;
    }

    /**
     * Get trainingHistories
     *
     * @return Doctrine\Common\Collections\Collection $trainingHistories
     */
    public function getTrainingHistories()
    {
        return $this->trainingHistories;
    }

    /**
     * Add payrollInfos
     *
     * @param My\EhrBundle\Entity\PersonnelPayrollInfo $payrollInfos
     */
    public function addPayrollInfos(\My\EhrBundle\Entity\PersonnelPayrollInfo $payrollInfos)
    {
        $this->payrollInfos[] = $payrollInfos;
    }

    /**
     * Get payrollInfos
     *
     * @return Doctrine\Common\Collections\Collection $payrollInfos
     */
    public function getPayrollInfos()
    {
        return $this->payrollInfos;
    }

    /**
     * Add employementRecords
     *
     * @param My\EhrBundle\Entity\PersonnelEmployementRecord $employementRecords
     */
    public function addEmployementRecords(\My\EhrBundle\Entity\PersonnelEmployementRecord $employementRecords)
    {
        $this->employementRecords[] = $employementRecords;
    }

    /**
     * Get employementRecords
     *
     * @return Doctrine\Common\Collections\Collection $employementRecords
     */
    public function getEmployementRecords()
    {
        return $this->employementRecords;
    }
}